﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Txt2Shp4Sharp.landm
{
    /// <summary>
    /// 坐标界址点
    /// </summary>
    public class JzdPoint
    {
        private double x;
        private double y;

        public JzdPoint(double x, double y)
        {
            this.x = x;
            this.y = y;
        }

        public JzdPoint()
        {
        }

        
        public double X
        {
            get
            {
                return this.x;
            }
            set
            {
                this.x = value;
            }
        }

        public double Y
        {
            get
            {
                return this.y;
            }
            set
            {
                this.y = value;
            }
        }

        public override bool Equals(object obj)
        {
            if (obj is JzdPoint)
            {
                JzdPoint newpt = (JzdPoint)obj;
                if (this.x == newpt.X && this.y == newpt.Y)
                {
                    return true;
                }
            }
            return false;

        }
        
    }
}
